package com.beck;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
@Data
public class MyBean {
    @Value("${myname}")
    private String name;

    //@Value("${spring.myage}")
    private int age;
}
